from django.db import models

# Create your models here.
class UserInfo(models.Model):

    id = models.AutoField(primary_key=True)  # id int primary key auto_increment
    username = models.CharField(max_length=32)  # username varchar(32)
    password = models.CharField(max_length=64)  # password varchar(32)
    age = models.IntegerField() # age int
    # def __str__(self):
    #     print('aaa')
    #     return self.username

class Author(models.Model):
    username = models.CharField(max_length=32)  # username varchar(32)
    password = models.CharField(max_length=64)  # password varchar(32)
    age = models.IntegerField() # age int
